﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace SCRUM.Core.BusinessObjects
{
    /// <summary>
    /// Business object which holds following information:
    ///  * ID - object's unique identifier (among objects of same type)
    ///  * Name - name of object
    /// </summary>
    [Serializable()]
    public abstract class NamedBusinessObject : BusinessObject
    {
        /// <summary>
        /// Gets or sets the name of the business object.
        /// </summary>
        /// <value>The name.</value>
        public string Name { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="NamedBusinessObject"/> class.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <param name="name">The name.</param>
        protected NamedBusinessObject(int id, string name)
            : base(id)
        {
            this.Name = name;
        }
    }
        
}
